<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 
        <tr>
          <td colspan="3"> <div align="center" class="boldtext style7"><strong>Manage Timeslots</strong></div></td>
          </tr>
        <tr>
          <td colspan="3" class="boldtext style7">
		  &nbsp;&nbsp;&nbsp;
		  <select name="theaterId" onChange="getTimeSlots()" >
		  <option>Select a Theater</option>
		  <c:forEach var="theater" items="${requestScope.Theater_Array}" >
		  
		  <c:choose>
		  <c:when test="${theater.theaterId eq requestScope.theaterId}" >
            <option value="<c:out value="${theater.theaterId}" />" selected><c:out value="${theater.theaterName}" /></option>
          </c:when>
          <c:otherwise >
            <option value="<c:out value="${theater.theaterId}" />"><c:out value="${theater.theaterName}" /></option>
          </c:otherwise>
		  </c:choose>    
		          
		  </c:forEach>
          </select></td>
        </tr>
        <tr>
          <td width="17%" class="boldtext style9">&nbsp;&nbsp;&nbsp;Time Zone </td>
          <td width="31%" class="boldtext style9">Usual Time </td>
          <td width="23%" class="boldtext style9">Modify</td>
        </tr>
		<c:forEach items="${requestScope.timeSlotArr}" var="timeslot" >
        <tr>
          <td height="32">&nbsp;&nbsp;&nbsp;<c:out value="${timeslot.slotNo}"/></td>
          <td><c:out value="${timeslot.usualTime}" /></td>
          <td><input type="submit" name="Submit" value="Modify" 
		  onclick="modifyTimeslot('<c:out value="${timeslot.timeSlotId}"/>')">		  		  
		  </td>
        </tr>
		</c:forEach>
		 <tr>
          <td height="32" colspan="3"><div align="center">
            <input type="submit" name="Submit" value="Add New TimeSlot" onclick="addTimeslot()" >
          </div></td>
        </tr>
   
